home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
DTP
/
DTP_TEX
/
H220.ZIP
/
WP2X110.ZIP
/
HINTS
< prev
next >
Wrap
Text File
|
1991-08-18
|
2KB
|
58 lines
Hints for compiling on various platforms
-------------------------------------------------------------------------------
UNIX with gcc
gcc -v -ansi -funsigned-char -DUNIX -DWP2X_DIR=\"/usr/local/lib/wp2x\"
-o wp2x wp2x.c
-------------------------------------------------------------------------------
Amiga, courtesy of Dale Gold (dgold@basso.actrix.gen.nz)
# Makefile for SAS 5.10 on the Amiga.
#
# -b0 No base relative addressing
# -cu All char unsigned
# -L Automatically link
# -DNO_CONST compiler does not support `const' qualifier
wp2x: wp2x.c lmkfile
lc -b0 -cu -L -DNO_CONST -DAMIGA wp2x.c
-------------------------------------------------------------------------------
IBM PC / Turbo C 2.0, suggested by Raymond Chen (raymond@math.berkeley.edu)
tcc -mt -G -K -O -f- -r -Z -p -DCdecl=cdecl -DMSDOS wp2x.c
-mt = tiny model
-G = compile for speed
-K = unsigned characters
-O = optimize jumps
-f- = no floating point
-r = register variables
-Z = optimize register usage
-p = pascal calling convention
-DCdecl=cdecl = for tagging variadic functions
Note, however, that setting the -O switch means that the killer switch()
statement causes TC2.0 to act like it's gone out to lunch. It hasn't;
it's chugging away, albeit incredibly slowly.
-------------------------------------------------------------------------------
IBM PC / MSC 6.0, suggested by Raymond Chen (raymond@math.berkeley.edu)
cl -AS -Gr -J -Ozax -DCdecl=_cdecl -DMSDOS wp2x.c
-AS = small model
-Gr = use fastcalls calling convention
-J = unsigned chars
-Ozax = maximum optimization
-DCdecl=_cdecl = for tagging variadic functions
-------------------------------------------------------------------------------
IBM PC / MS C 5.1, suggested by Richard Reiner <rreiner@nexus.yorku.ca>
cl -AS -Gc -J -Ox -DCdecl=cdecl -DMSDOS wp2x.c
-AS = small model
-Gc = pascal calling convention
-J = unsigned chars
-Ox = maximum optimization
-DCdecl=cdecl = for tagging variadic functions